package com.flycat.dto.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 通用查询条件类
 * @Author yalei.chen
 * @Date 2017/9/24
 * @Since JDK 1.8
 */
@Getter
@Setter
@ToString(callSuper = true)
@ApiModel(value="通用查询条件")
public class CommonQuery implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 指定按哪个属性排序
     */
    @ApiModelProperty(value="排序属性")
    protected String sortby;

    /**
     * 排序顺序，asc/desc
     */
    @ApiModelProperty(value="排序顺序：asc/desc")
    protected String ordered;



}
